package com.gameapplet.question.service.Impl;

import com.gameapplet.item.model.StageQuestionMapper;
import com.gameapplet.question.service.IQuestionServices;
import com.gameapplet.question.dao.IQuestionDao;
import com.gameapplet.question.model.Question;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service("questionService")
public class QuestionServiceImpl implements IQuestionServices{
    @Resource(name="questionDao")
    IQuestionDao questionDAO;

    @Override
    public Question selectByPrimaryKey(String stageid) {
        return questionDAO.selectByPrimaryKey(stageid);
    }

    @Override
    public List<Question> selectQuestionlistById(List<StageQuestionMapper> questionList) {
        return questionDAO.selectQuestionlistById(questionList);

    }

    @Override
    public List<Question> selectQuestionlist() {
        return questionDAO.selectQuestionlist();
    }

    @Override
    public int selectQuestionNum() {
        return questionDAO.selectQuestionNum();
    }
}
